🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / ui / src / commonMain / kotlin / org / meshtastic / core / ui / theme / ContrastLevel.kt
Displaying Raw • Download
core/ui/src/commonMain/kotlin/org/meshtastic/core/ui/theme/ContrastLevel.kt 3d2b21843e976f552f8b91be67da0746466e5b8e (3d2b2184) Text, 1.70 KB
T8b949e/*
* Copyright (c) 2025-2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.ui.theme
Tff7b72import T7ee787androidx.compose.runtime.staticCompositionLocalOf
T8b949e/**
* Application-wide contrast level for accessibility.
*
* [STANDARD] keeps the default Material 3 color scheme. [MEDIUM] uses Material 3 medium-contrast color tokens and
* increases message bubble opacity. [HIGH] uses Material 3 high-contrast color tokens, forces `onSurface` text in
* message bubbles, and replaces translucent node-color fills with opaque theme surfaces plus accent borders.
*/
Tff7b72enum Tff7b72class T56d364ContrastLevelTb4b4b4(Tff7b72val Te6edf3valueTb4b4b4: Tffa657IntTb4b4b4) Tb4b4b4{
Te6edf3STANDARDTb4b4b4(T79c0ff0Tb4b4b4)Tb4b4b4,
Te6edf3MEDIUMTb4b4b4(T79c0ff1Tb4b4b4)Tb4b4b4,
Te6edf3HIGHTb4b4b4(T79c0ff2Tb4b4b4)Tb4b4b4,
Tb4b4b4;
Tff7b72companion Tff7b72object Tb4b4b4{
Tff7b72fun Td2a8fffromValueTb4b4b4(Te6edf3valueTb4b4b4: Tffa657IntTb4b4b4)Tb4b4b4: Te6edf3ContrastLevel Tff7b72= Te6edf3entriesTb4b4b4.Te6edf3firstOrNull Tb4b4b4{ Tffa657itTb4b4b4.Te6edf3value Tff7b72=Tff7b72= Te6edf3value Tb4b4b4} Tff7b72?: Te6edf3STANDARD
Tb4b4b4}
Tb4b4b4}
T8b949e/**
* Composition local providing the current [ContrastLevel].
*
* Read by components that need to adapt their rendering for accessibility (e.g. message bubbles, signal indicators).
*/
Tff7b72val Te6edf3LocalContrastLevel Tff7b72= Te6edf3staticCompositionLocalOf Tb4b4b4{ Te6edf3ContrastLevelTb4b4b4.Te6edf3STANDARD Tb4b4b4}
Served by rngit 1.5.4 - Generated in 0.11s